
import requestProxy from '@/utils/request';
const { request } = requestProxy;

// 获取目标数据
export function getTargetData(params) {
  return request({
    url: '/admin/target/data',
    method: 'get',
    params
  });
}
export function getBusinessEntiy() {
  return request({
    url: '/admin/target/department/businessEntiy',
    method: 'get'
  });
}

// 提交目标数据
export function putTargetData(data) {
  return request({
    url: '/admin/target/data',
    method: 'put',
    data
  });
}

export function getSignStatistics(params) {
  return request({
    url: '/admin/signTarget/statistics',
    method: 'get',
    params
  });
}

export function getSignTarget(params) {
  return request({
    url: '/admin/signTarget/target',
    method: 'get',
    params
  });
}

export function getSignWeek(params) {
  return request({
    url: '/admin/signTarget/schedule/week',
    method: 'get',
    params
  });
}

export function getSignMonth(params) {
  return request({
    url: '/admin/signTarget/schedule/month',
    method: 'get',
    params
  });
}

export function getSignQuarter(params) {
  return request({
    url: '/admin/signTarget/schedule/quarter',
    method: 'get',
    params
  });
}

export function handleSignStatistics(params) {
  return request({
    url: '/admin/signTarget/statistics/update',
    method: 'get',
    params
  });
}

export function putSignTargetData(data) {
  return request({
    url: '/admin/signTarget/target',
    method: 'put',
    data
  });
}
export function getSignTargetEntiy() {
  return request({
    url: '/admin/signTarget/department',
    method: 'get'
  });
}
